import Vue from 'vue'
import VueRouter from 'vue-router'
import index from '@/views/index/index.vue'
import demo from '@/views/demo/demo.vue'
import bigdata from '@/views/bigdata/bigdata.vue'
import analy from '@/views/analy/analy.vue'

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    component: index
  },
  {
    path: '/index',
    component: index
  },
  {
    path: '/demo',
    name: 'demo',
    component: demo
  },
  {
    path: '/bigdata',
    name: 'bigdata',
    component: bigdata
  },
  {
    path: '/analy',
    component: analy
  },
]

const router = new VueRouter({
  mode: 'history',
  base: process.env.BASE_URL,
  routes
})

export default router
